<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cryptic Cabinet: CrypticCabinet.SceneManagement.FloorSpaceFinder Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="Logo 100x100px.png"/></td>
  <td id="projectalign">
   <div id="projectname">Cryptic Cabinet
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">CrypticCabinet.SceneManagement.FloorSpaceFinder Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>System for finding the space on a floor including functionality to place relative to the wall.  
 <a href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for CrypticCabinet.SceneManagement.FloorSpaceFinder:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.png" usemap="#CrypticCabinet.SceneManagement.FloorSpaceFinder_map" alt=""/>
  <map id="CrypticCabinet.SceneManagement.FloorSpaceFinder_map" name="CrypticCabinet.SceneManagement.FloorSpaceFinder_map">
<area href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html" title="Interface defining the core functions for a space finder object." alt="CrypticCabinet.SceneManagement.ISpaceFinder" shape="rect" coords="325,0,640,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2127e769a2b69b1c0c8babcba30fe2c5" id="r_a2127e769a2b69b1c0c8babcba30fe2c5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a2127e769a2b69b1c0c8babcba30fe2c5">HasSetUpCompleted</a> ()</td></tr>
<tr class="separator:a2127e769a2b69b1c0c8babcba30fe2c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac533bc7ad46f1b4de37586fb65ec93ca" id="r_ac533bc7ad46f1b4de37586fb65ec93ca"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#ac533bc7ad46f1b4de37586fb65ec93ca">CleanUp</a> ()</td></tr>
<tr class="separator:ac533bc7ad46f1b4de37586fb65ec93ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b41eff5d00fcf930444783e9e796c2b" id="r_a3b41eff5d00fcf930444783e9e796c2b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a3b41eff5d00fcf930444783e9e796c2b">GetFinderTransform</a> (out Matrix4x4 localToWorldMatrix)</td></tr>
<tr class="separator:a3b41eff5d00fcf930444783e9e796c2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf57f5a163c9b541341873e57fef86f8" id="r_adf57f5a163c9b541341873e57fef86f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#adf57f5a163c9b541341873e57fef86f8">GetFinderSize</a> (out Vector3 worldSize)</td></tr>
<tr class="separator:adf57f5a163c9b541341873e57fef86f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15a8924621d82dcbf43f47a79aa93d26" id="r_a15a8924621d82dcbf43f47a79aa93d26"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a15a8924621d82dcbf43f47a79aa93d26">CheckPhysicsResultIsClear</a> (Collider[] hitColliders, int hitCount)</td></tr>
<tr class="separator:a15a8924621d82dcbf43f47a79aa93d26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add0557eafc02112f719b2393234efe93" id="r_add0557eafc02112f719b2393234efe93"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#add0557eafc02112f719b2393234efe93">BlockPhysicsResult</a> (Collider[] hitColliders, int hitCount)</td></tr>
<tr class="separator:add0557eafc02112f719b2393234efe93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a224e770e3a1f7782c51d554ea1a6ccb3" id="r_a224e770e3a1f7782c51d554ea1a6ccb3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a224e770e3a1f7782c51d554ea1a6ccb3">RequestRandomLocation</a> (Vector3 locationToFace, float objectRadius, out Vector3 foundPosition, out Quaternion foundRotation, bool markAsBlocked=false, float edgeDistance=-1)</td></tr>
<tr class="memdesc:a224e770e3a1f7782c51d554ea1a6ccb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests a random floor location that is both a set distance from a floor and and not intersecting with any objects.  <br /></td></tr>
<tr class="separator:a224e770e3a1f7782c51d554ea1a6ccb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fe10bcc63859f023d3c2effeb9aa326" id="r_a2fe10bcc63859f023d3c2effeb9aa326"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a2fe10bcc63859f023d3c2effeb9aa326">RequestRandomLocation</a> (Vector3 locationToFace, Vector3 objectDimensions, out Vector3 foundPosition, out Quaternion foundRotation, bool markAsBlocked=false)</td></tr>
<tr class="separator:a2fe10bcc63859f023d3c2effeb9aa326"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac79c2277bed347d886f921897706da88" id="r_ac79c2277bed347d886f921897706da88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#ac79c2277bed347d886f921897706da88">GenerateCells</a> ()</td></tr>
<tr class="memdesc:ac79c2277bed347d886f921897706da88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates the cells over the floor plane. This is done by generating an array of points that are in a grid using the OVRScenePlane.Dimensions field, and then raycast against the floor plane mesh collider to find valid locations.  <br /></td></tr>
<tr class="separator:ac79c2277bed347d886f921897706da88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31ecc1d027a1f5281c8c7571c4e7323f" id="r_a31ecc1d027a1f5281c8c7571c4e7323f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a31ecc1d027a1f5281c8c7571c4e7323f">RememberDistanceField</a> ()</td></tr>
<tr class="separator:a31ecc1d027a1f5281c8c7571c4e7323f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa411cd8a531ad07522d1da4d263be17c" id="r_aa411cd8a531ad07522d1da4d263be17c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#aa411cd8a531ad07522d1da4d263be17c">ResetDistanceField</a> ()</td></tr>
<tr class="separator:aa411cd8a531ad07522d1da4d263be17c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb3f87090a9e8e39acf71fc446472354" id="r_abb3f87090a9e8e39acf71fc446472354"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#abb3f87090a9e8e39acf71fc446472354">SetDebugViewEnabled</a> (bool isVisible)</td></tr>
<tr class="separator:abb3f87090a9e8e39acf71fc446472354"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a261300229cae8f48b26b029e73e947ef" id="r_a261300229cae8f48b26b029e73e947ef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a261300229cae8f48b26b029e73e947ef">ToggleDebugView</a> ()</td></tr>
<tr class="separator:a261300229cae8f48b26b029e73e947ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab89487571a0c8d0949ad6cfd57916904" id="r_ab89487571a0c8d0949ad6cfd57916904"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#ab89487571a0c8d0949ad6cfd57916904">SetSearchCollidersActive</a> (bool collidersActive)</td></tr>
<tr class="separator:ab89487571a0c8d0949ad6cfd57916904"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e4a003aa389b87415f61d858ebee485" id="r_a8e4a003aa389b87415f61d858ebee485"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a8e4a003aa389b87415f61d858ebee485">CalculateBlockedArea</a> (Matrix4x4 objectTransform, Vector2 objectSize)</td></tr>
<tr class="memdesc:a8e4a003aa389b87415f61d858ebee485"><td class="mdescLeft">&#160;</td><td class="mdescRight">Takes a 2D plane and calculates the blocked area for it.  <br /></td></tr>
<tr class="separator:a8e4a003aa389b87415f61d858ebee485"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6788f52bf7d7f81a67511f7c2bd131e3" id="r_a6788f52bf7d7f81a67511f7c2bd131e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a6788f52bf7d7f81a67511f7c2bd131e3">CalculateBlockedArea</a> (Matrix4x4 objectTransform, Vector3 objectSize)</td></tr>
<tr class="memdesc:a6788f52bf7d7f81a67511f7c2bd131e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uses the passed in details to workout the areas on the floor that are blocked by the object, updating the the distance field accordingly.  <br /></td></tr>
<tr class="separator:a6788f52bf7d7f81a67511f7c2bd131e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3e6d1e4a3f0ca3703134750e3a61b85" id="r_ac3e6d1e4a3f0ca3703134750e3a61b85"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#ac3e6d1e4a3f0ca3703134750e3a61b85">RequestTrulyRandomLocation</a> (out Vector3 position)</td></tr>
<tr class="separator:ac3e6d1e4a3f0ca3703134750e3a61b85"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:af3efa0941bc4e969aa26b47c0eda645e" id="r_af3efa0941bc4e969aa26b47c0eda645e"><td class="memItemLeft" align="right" valign="top">Material&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#af3efa0941bc4e969aa26b47c0eda645e">DebugMaterial</a></td></tr>
<tr class="separator:af3efa0941bc4e969aa26b47c0eda645e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a46ce07433b2dc7dbe40fb7c03275a21d" id="r_a46ce07433b2dc7dbe40fb7c03275a21d"><td class="memItemLeft" align="right" valign="top">Vector3&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a46ce07433b2dc7dbe40fb7c03275a21d">FloorCenterPosition</a><code> [get]</code></td></tr>
<tr class="separator:a46ce07433b2dc7dbe40fb7c03275a21d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf23f9d5abba8628ec16add673b32746" id="r_acf23f9d5abba8628ec16add673b32746"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#acf23f9d5abba8628ec16add673b32746">IsReadyToGenerate</a><code> [get]</code></td></tr>
<tr class="separator:acf23f9d5abba8628ec16add673b32746"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>System for finding the space on a floor including functionality to place relative to the wall. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="add0557eafc02112f719b2393234efe93" name="add0557eafc02112f719b2393234efe93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add0557eafc02112f719b2393234efe93">&#9670;&#160;</a></span>BlockPhysicsResult()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.BlockPhysicsResult </td>
          <td>(</td>
          <td class="paramtype">Collider[]&#160;</td>
          <td class="paramname"><em>hitColliders</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hitCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a2fe10bcc63859f023d3c2effeb9aa326">CrypticCabinet.SceneManagement.FloorSpaceFinder.RequestRandomLocation()</a>.</p>

</div>
</div>
<a id="a8e4a003aa389b87415f61d858ebee485" name="a8e4a003aa389b87415f61d858ebee485"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e4a003aa389b87415f61d858ebee485">&#9670;&#160;</a></span>CalculateBlockedArea() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.CalculateBlockedArea </td>
          <td>(</td>
          <td class="paramtype">Matrix4x4&#160;</td>
          <td class="paramname"><em>objectTransform</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vector2&#160;</td>
          <td class="paramname"><em>objectSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Takes a 2D plane and calculates the blocked area for it. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">objectTransform</td><td>Matrix describing the objects position.</td></tr>
    <tr><td class="paramname">objectSize</td><td>Dimensions of the surface.</td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a90f55466a2a4c9efd5ec6c82d99fa7b4">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a8e4a003aa389b87415f61d858ebee485">CrypticCabinet.SceneManagement.FloorSpaceFinder.CalculateBlockedArea()</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a8e4a003aa389b87415f61d858ebee485">CrypticCabinet.SceneManagement.FloorSpaceFinder.CalculateBlockedArea()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#ac79c2277bed347d886f921897706da88">CrypticCabinet.SceneManagement.FloorSpaceFinder.GenerateCells()</a>.</p>

</div>
</div>
<a id="a6788f52bf7d7f81a67511f7c2bd131e3" name="a6788f52bf7d7f81a67511f7c2bd131e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6788f52bf7d7f81a67511f7c2bd131e3">&#9670;&#160;</a></span>CalculateBlockedArea() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.CalculateBlockedArea </td>
          <td>(</td>
          <td class="paramtype">Matrix4x4&#160;</td>
          <td class="paramname"><em>objectTransform</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vector3&#160;</td>
          <td class="paramname"><em>objectSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uses the passed in details to workout the areas on the floor that are blocked by the object, updating the the distance field accordingly. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">objectTransform</td><td>Transform of the potentially blocking object.</td></tr>
    <tr><td class="paramname">objectSize</td><td>Dimensions of the object.</td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#ac5d13c46e6cc20dfca1830ee98a7c4d2">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a31ecc1d027a1f5281c8c7571c4e7323f">CrypticCabinet.SceneManagement.FloorSpaceFinder.RememberDistanceField()</a>.</p>

</div>
</div>
<a id="a15a8924621d82dcbf43f47a79aa93d26" name="a15a8924621d82dcbf43f47a79aa93d26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15a8924621d82dcbf43f47a79aa93d26">&#9670;&#160;</a></span>CheckPhysicsResultIsClear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CrypticCabinet.SceneManagement.FloorSpaceFinder.CheckPhysicsResultIsClear </td>
          <td>(</td>
          <td class="paramtype">Collider[]&#160;</td>
          <td class="paramname"><em>hitColliders</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hitCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a2fe10bcc63859f023d3c2effeb9aa326">CrypticCabinet.SceneManagement.FloorSpaceFinder.RequestRandomLocation()</a>.</p>

</div>
</div>
<a id="ac533bc7ad46f1b4de37586fb65ec93ca" name="ac533bc7ad46f1b4de37586fb65ec93ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac533bc7ad46f1b4de37586fb65ec93ca">&#9670;&#160;</a></span>CleanUp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.CleanUp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a664d101207060ed4340de08241b70f3e">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<a id="ac79c2277bed347d886f921897706da88" name="ac79c2277bed347d886f921897706da88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac79c2277bed347d886f921897706da88">&#9670;&#160;</a></span>GenerateCells()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.GenerateCells </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generates the cells over the floor plane. This is done by generating an array of points that are in a grid using the OVRScenePlane.Dimensions field, and then raycast against the floor plane mesh collider to find valid locations. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a8e4a003aa389b87415f61d858ebee485">CrypticCabinet.SceneManagement.FloorSpaceFinder.CalculateBlockedArea()</a>, <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#af3efa0941bc4e969aa26b47c0eda645e">CrypticCabinet.SceneManagement.FloorSpaceFinder.DebugMaterial</a>, and <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a31ecc1d027a1f5281c8c7571c4e7323f">CrypticCabinet.SceneManagement.FloorSpaceFinder.RememberDistanceField()</a>.</p>

</div>
</div>
<a id="adf57f5a163c9b541341873e57fef86f8" name="adf57f5a163c9b541341873e57fef86f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf57f5a163c9b541341873e57fef86f8">&#9670;&#160;</a></span>GetFinderSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.GetFinderSize </td>
          <td>(</td>
          <td class="paramtype">out Vector3&#160;</td>
          <td class="paramname"><em>worldSize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#aaf57723e2daa7dfcbb77eb9f70c4aebf">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<a id="a3b41eff5d00fcf930444783e9e796c2b" name="a3b41eff5d00fcf930444783e9e796c2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b41eff5d00fcf930444783e9e796c2b">&#9670;&#160;</a></span>GetFinderTransform()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.GetFinderTransform </td>
          <td>(</td>
          <td class="paramtype">out Matrix4x4&#160;</td>
          <td class="paramname"><em>localToWorldMatrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a6aac48590e5df7851d43987447961608">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<a id="a2127e769a2b69b1c0c8babcba30fe2c5" name="a2127e769a2b69b1c0c8babcba30fe2c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2127e769a2b69b1c0c8babcba30fe2c5">&#9670;&#160;</a></span>HasSetUpCompleted()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CrypticCabinet.SceneManagement.FloorSpaceFinder.HasSetUpCompleted </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a0e029146286bc59fa0236605996b25f3">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<a id="a31ecc1d027a1f5281c8c7571c4e7323f" name="a31ecc1d027a1f5281c8c7571c4e7323f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31ecc1d027a1f5281c8c7571c4e7323f">&#9670;&#160;</a></span>RememberDistanceField()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.RememberDistanceField </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#afcb326b4eac8f11cee99f8ebc1aa78ad">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a46ce07433b2dc7dbe40fb7c03275a21d">CrypticCabinet.SceneManagement.FloorSpaceFinder.FloorCenterPosition</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a6788f52bf7d7f81a67511f7c2bd131e3">CrypticCabinet.SceneManagement.FloorSpaceFinder.CalculateBlockedArea()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#ac79c2277bed347d886f921897706da88">CrypticCabinet.SceneManagement.FloorSpaceFinder.GenerateCells()</a>.</p>

</div>
</div>
<a id="a224e770e3a1f7782c51d554ea1a6ccb3" name="a224e770e3a1f7782c51d554ea1a6ccb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a224e770e3a1f7782c51d554ea1a6ccb3">&#9670;&#160;</a></span>RequestRandomLocation() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CrypticCabinet.SceneManagement.FloorSpaceFinder.RequestRandomLocation </td>
          <td>(</td>
          <td class="paramtype">Vector3&#160;</td>
          <td class="paramname"><em>locationToFace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>objectRadius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Vector3&#160;</td>
          <td class="paramname"><em>foundPosition</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Quaternion&#160;</td>
          <td class="paramname"><em>foundRotation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>markAsBlocked</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>edgeDistance</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Requests a random floor location that is both a set distance from a floor and and not intersecting with any objects. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locationToFace</td><td>The location of the user that the spawned object should face.</td></tr>
    <tr><td class="paramname">objectRadius</td><td>Radius of the object being placed</td></tr>
    <tr><td class="paramname">foundPosition</td><td>Returns the chosen random location.</td></tr>
    <tr><td class="paramname">markAsBlocked</td><td>When true, the cell is marked as blocked, otherwise it is unchanged.</td></tr>
    <tr><td class="paramname">edgeDistance</td><td>The desired distance from the wall, otherwise -1 to ignore.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Float to if a location was successfully found.</dd></dl>

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a3f80dd4dc7d57da97f582d1eef31ee74">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a224e770e3a1f7782c51d554ea1a6ccb3">CrypticCabinet.SceneManagement.FloorSpaceFinder.RequestRandomLocation()</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a224e770e3a1f7782c51d554ea1a6ccb3">CrypticCabinet.SceneManagement.FloorSpaceFinder.RequestRandomLocation()</a>.</p>

</div>
</div>
<a id="a2fe10bcc63859f023d3c2effeb9aa326" name="a2fe10bcc63859f023d3c2effeb9aa326"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fe10bcc63859f023d3c2effeb9aa326">&#9670;&#160;</a></span>RequestRandomLocation() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CrypticCabinet.SceneManagement.FloorSpaceFinder.RequestRandomLocation </td>
          <td>(</td>
          <td class="paramtype">Vector3&#160;</td>
          <td class="paramname"><em>locationToFace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vector3&#160;</td>
          <td class="paramname"><em>objectDimensions</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Vector3&#160;</td>
          <td class="paramname"><em>foundPosition</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Quaternion&#160;</td>
          <td class="paramname"><em>foundRotation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>markAsBlocked</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a042a259bfb32d094dc107cd9dec82d79">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#add0557eafc02112f719b2393234efe93">CrypticCabinet.SceneManagement.FloorSpaceFinder.BlockPhysicsResult()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a15a8924621d82dcbf43f47a79aa93d26">CrypticCabinet.SceneManagement.FloorSpaceFinder.CheckPhysicsResultIsClear()</a>.</p>

</div>
</div>
<a id="ac3e6d1e4a3f0ca3703134750e3a61b85" name="ac3e6d1e4a3f0ca3703134750e3a61b85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3e6d1e4a3f0ca3703134750e3a61b85">&#9670;&#160;</a></span>RequestTrulyRandomLocation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.RequestTrulyRandomLocation </td>
          <td>(</td>
          <td class="paramtype">out Vector3&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a1e2cc0aa3a0e3f9d3592bd7463bbbf0e">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<a id="aa411cd8a531ad07522d1da4d263be17c" name="aa411cd8a531ad07522d1da4d263be17c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa411cd8a531ad07522d1da4d263be17c">&#9670;&#160;</a></span>ResetDistanceField()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.ResetDistanceField </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#ae747a40f656cf7eb1fff8dbb84d65b4c">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<a id="abb3f87090a9e8e39acf71fc446472354" name="abb3f87090a9e8e39acf71fc446472354"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb3f87090a9e8e39acf71fc446472354">&#9670;&#160;</a></span>SetDebugViewEnabled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.SetDebugViewEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isVisible</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a4bec616eb33bcdb10f4a2f8db93163a0">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<a id="ab89487571a0c8d0949ad6cfd57916904" name="ab89487571a0c8d0949ad6cfd57916904"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab89487571a0c8d0949ad6cfd57916904">&#9670;&#160;</a></span>SetSearchCollidersActive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.SetSearchCollidersActive </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>collidersActive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a8e7ce77c64d06ce1d92059f18c2217ee">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<a id="a261300229cae8f48b26b029e73e947ef" name="a261300229cae8f48b26b029e73e947ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a261300229cae8f48b26b029e73e947ef">&#9670;&#160;</a></span>ToggleDebugView()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.SceneManagement.FloorSpaceFinder.ToggleDebugView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements <a class="el" href="interface_cryptic_cabinet_1_1_scene_management_1_1_i_space_finder.html#a53592e72220732901345109fbdd56c71">CrypticCabinet.SceneManagement.ISpaceFinder</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="af3efa0941bc4e969aa26b47c0eda645e" name="af3efa0941bc4e969aa26b47c0eda645e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3efa0941bc4e969aa26b47c0eda645e">&#9670;&#160;</a></span>DebugMaterial</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Material CrypticCabinet.SceneManagement.FloorSpaceFinder.DebugMaterial</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#ac79c2277bed347d886f921897706da88">CrypticCabinet.SceneManagement.FloorSpaceFinder.GenerateCells()</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a46ce07433b2dc7dbe40fb7c03275a21d" name="a46ce07433b2dc7dbe40fb7c03275a21d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46ce07433b2dc7dbe40fb7c03275a21d">&#9670;&#160;</a></span>FloorCenterPosition</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Vector3 CrypticCabinet.SceneManagement.FloorSpaceFinder.FloorCenterPosition</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html#a31ecc1d027a1f5281c8c7571c4e7323f">CrypticCabinet.SceneManagement.FloorSpaceFinder.RememberDistanceField()</a>.</p>

</div>
</div>
<a id="acf23f9d5abba8628ec16add673b32746" name="acf23f9d5abba8628ec16add673b32746"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf23f9d5abba8628ec16add673b32746">&#9670;&#160;</a></span>IsReadyToGenerate</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CrypticCabinet.SceneManagement.FloorSpaceFinder.IsReadyToGenerate</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_floor_space_finder_8cs.html">FloorSpaceFinder.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_cryptic_cabinet.html">CrypticCabinet</a></li><li class="navelem"><a class="el" href="namespace_cryptic_cabinet_1_1_scene_management.html">SceneManagement</a></li><li class="navelem"><a class="el" href="class_cryptic_cabinet_1_1_scene_management_1_1_floor_space_finder.html">FloorSpaceFinder</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
